package com.foreverwin.mes.lims.mapper;

import com.foreverwin.mes.lims.model.InspectTask;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.foreverwin.mes.so.model.ShopOrderDispatch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Levy
 * @since 2020-02-24
 */
@Repository
public interface InspectTaskMapper extends BaseMapper<InspectTask> {

    /**
     * 根据计划/证明分配查找任务
     * @param planBo
     * @param user
     * @return
     */
    List<InspectTask> selectTaskByPlanBo (@Param("planBo") String planBo ,@Param("userBo") String user );

    List<ShopOrderDispatch> doSearchItemByResrce (@Param("site") String site ,@Param("resrce") String resrce );
}